<?php
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'basic';
$return=array();
/*******basic*******/
if($_RQ['op']=='basic'){
	if($_RQ['postdata']){
		$postdata=get_postdata();
		$this->plugin_setting('basic',$postdata);
		exi('设置成功');
	}
	
	$item=$this->plugin_setting('basic');
	$return['item']=$item;
	$htmls=array(
		'type'=>'edit',
		'desc'=>'设置',
		'edit'=>array(
			array('type'=>'unitstring','unit'=>'W/平米','name'=>'pei_wfee','title'=>'默认冷负荷数','help'=>'例如：160'),
			array('type'=>'unitstring','unit'=>'倍','name'=>'pei_rate','title'=>'默认修正系数','help'=>'例如：1.2'),
			array('type'=>'image','name'=>'dayinlogo','title'=>'打印单左上角LOGO'),
			array('type'=>'image','name'=>'dayinewm','title'=>'打印单左下角二维码'),
		),
	);
	$return['htmls']=$htmls;
	exi($return);
}
/*******basic*******/
/*******op*******/
